<template name="skeleton">
  <view class="viewport">
    <view class="search">
      <view class="input">
        <text class="icon-search sk-transparent sk-text-14-2857-907 sk-text sk-pseudo sk-pseudo-circle">女靴</text>
      </view>
    </view>
    <view class="categories">
      <scroll-view scroll-y="true" class="primary">
        <view class="item active sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-784 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-455 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-142 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-217 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-840 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-148 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-465 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-913 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-241 sk-text"> 居家 </text>
        </view>
        <view class="item sk-pseudo sk-pseudo-circle">
          <text class="name sk-transparent sk-text-14-2857-666 sk-text"> 居家 </text>
        </view>
      </scroll-view>
      <scroll-view scroll-y="true" class="secondary">
        <xtx-swiper class="banner"></xtx-swiper>
        <view class="panel">
          <view class="title">
            <text class="name sk-transparent sk-text-26-6667-77 sk-text">宠物用品</text>
            <navigator class="more sk-transparent sk-text-30-0000-312 sk-text sk-pseudo sk-pseudo-circle"
              hover-class="none">全部</navigator>
          </view>
          <view class="section">
            <navigator class="goods" hover-class="none">
              <image class="image sk-image"></image>
              <view class="name ellipsis sk-transparent sk-text-14-2857-695 sk-text">木天蓼逗猫棍</view>
              <view class="price">
                <text class="symbol sk-transparent sk-opacity">¥</text>
                <text class="number sk-transparent sk-text-14-2857-356 sk-text">16.00</text>
              </view>
            </navigator>
            <navigator class="goods" hover-class="none">
              <image class="image sk-image"></image>
              <view class="name ellipsis sk-transparent sk-text-14-2857-912 sk-text">木天蓼逗猫棍</view>
              <view class="price">
                <text class="symbol sk-transparent sk-opacity">¥</text>
                <text class="number sk-transparent sk-text-14-2857-166 sk-text">16.00</text>
              </view>
            </navigator>
            <navigator class="goods" hover-class="none">
              <image class="image sk-image"></image>
              <view class="name ellipsis sk-transparent sk-text-14-2857-441 sk-text">木天蓼逗猫棍</view>
              <view class="price">
                <text class="symbol sk-transparent sk-opacity">¥</text>
                <text class="number sk-transparent sk-text-14-2857-324 sk-text">16.00</text>
              </view>
            </navigator>
            <navigator class="goods" hover-class="none">
              <image class="image sk-image"></image>
              <view class="name ellipsis sk-transparent sk-text-14-2857-568 sk-text">木天蓼逗猫棍</view>
              <view class="price">
                <text class="symbol sk-transparent sk-opacity">¥</text>
                <text class="number sk-transparent sk-text-14-2857-919 sk-text">16.00</text>
              </view>
            </navigator>
          </view>
        </view>
        <view class="panel">
          <view class="title">
            <text class="name sk-transparent sk-text-26-6667-225 sk-text">宠物用品</text>
            <navigator class="more sk-transparent sk-text-30-0000-833 sk-text sk-pseudo sk-pseudo-circle"
              hover-class="none">全部</navigator>
          </view>
          <view class="section">
            <navigator class="goods" hover-class="none">
              <image class="image sk-image"></image>
              <view class="name ellipsis sk-transparent sk-text-14-2857-452 sk-text">木天蓼逗猫棍</view>
              <view class="price">
                <text class="symbol sk-transparent sk-opacity">¥</text>
                <text class="number sk-transparent sk-text-14-2857-21 sk-text">16.00</text>
              </view>
            </navigator>
            <navigator class="goods" hover-class="none">
              <image class="image sk-image"></image>
              <view class="name ellipsis sk-transparent sk-text-14-2857-1 sk-text">木天蓼逗猫棍</view>
              <view class="price">
                <text class="symbol sk-transparent sk-opacity">¥</text>
                <text class="number sk-transparent sk-text-14-2857-959 sk-text">16.00</text>
              </view>
            </navigator>
            <navigator class="goods" hover-class="none">
              <image class="image sk-image"></image>
              <view class="name ellipsis sk-transparent sk-text-14-2857-511 sk-text">木天蓼逗猫棍</view>
              <view class="price">
                <text class="symbol sk-transparent sk-opacity">¥</text>
                <text class="number sk-transparent sk-text-14-2857-568 sk-text">16.00</text>
              </view>
            </navigator>
            <navigator class="goods" hover-class="none">
              <image class="image sk-image"></image>
            </navigator>
          </view>
        </view>
      </scroll-view>
    </view>
  </view>
</template>
<style>
page {
  height: 100%;
  overflow: hidden;
}

.viewport {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.search {
  padding: 0 30rpx 20rpx;
  background-color: #fff;
}

.search .input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64rpx;
  padding-left: 26rpx;
  color: #8b8b8b;
  font-size: 28rpx;
  border-radius: 32rpx;
  background-color: #f3f4f4;
}

.icon-search::before {
  margin-right: 10rpx;
}

/* 分类 */
.categories {
  flex: 1;
  min-height: 400rpx;
  display: flex;
}

/* 一级分类 */
.primary {
  overflow: hidden;
  width: 180rpx;
  flex: none;
  background-color: #f6f6f6;
}

.primary .item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 96rpx;
  font-size: 26rpx;
  color: #595c63;
  position: relative;
}

.primary .item::after {
  content: "";
  position: absolute;
  left: 42rpx;
  bottom: 0;
  width: 96rpx;
  border-top: 1rpx solid #e3e4e7;
}

.primary .active {
  background-color: #fff;
}

.primary .active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8rpx;
  height: 100%;
  background-color: #27ba9b;
}

.primary .item:last-child::after,
.primary .active::after {
  display: none;
}

/* 二级分类 */
.secondary {
  background-color: #fff;
}

.secondary .carousel {
  height: 200rpx;
  margin: 0 30rpx 20rpx;
  border-radius: 4rpx;
  overflow: hidden;
}

.secondary .panel {
  margin: 0 30rpx 0rpx;
}

.secondary .title {
  height: 60rpx;
  line-height: 60rpx;
  color: #333;
  font-size: 28rpx;
  border-bottom: 1rpx solid #f7f7f8;
}

.secondary .title .more {
  float: right;
  padding-left: 20rpx;
  font-size: 24rpx;
  color: #999;
}

.secondary .more::after {
  font-family: "erabbit" !important;
  content: "\e6c2";
}

.secondary .section {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 20rpx 0;
}

.secondary .section .goods {
  width: 150rpx;
  margin: 0rpx 30rpx 20rpx 0;
}

.secondary .section .goods:nth-child(3n) {
  margin-right: 0;
}

.secondary .section .goods image {
  width: 150rpx;
  height: 150rpx;
}

.secondary .section .goods .name {
  padding: 5rpx;
  font-size: 22rpx;
  color: #333;
}

.secondary .section .goods .price {
  padding: 5rpx;
  font-size: 18rpx;
  color: #cf4444;
}

.secondary .section .goods .number {
  font-size: 24rpx;
  margin-left: 2rpx;
}
</style>